url = 'http://www.baidu.com/s'
"""
7 timeout=3 指定超时时间
8 代理, 参数proxies
9 参数verify ca证书
代理proxies

"""
# response = rqs.get("http://www.baidu.com")
# response.encoding = 'utf8'
# # print(response.text)
# # text 打印源码的str类型数据
# # content 是存储bytes类型的响应源码，可以进行decode操作
#

# print(response.request.headers)
# print(response.cookies)

headers = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36'
}
# params = {"wd": "python"}
# response1 = rqs.get(url, headers=headers, params=params)
# print(response1.text)
#

# with open('bai.html', 'wb') as f:
#     f.write(response1.content)

url = "https://github.com/J-summit"

cookies = '_gh_sess=y/MMiAWNsB7fRDrLUhwsEVz8/+dChZd8tRuGj6/QYf2Eq4GF/hbyvoXrT2ZxhKbtL3n+p/WkN9xu3d9hVExVGnilSUe+VwmdDwPD+5lwyvhXHH1W09bL9wzoxVmjczYLgldrnkKuJiyB0f9qY7+3PyP20zBUDi/Lvi4Cx76yQ8xPh38SAPiIVDKv+bHdrMEt9Gr1c9+dBhbi8n0tM+MGe6AdElT8VuJEFQXJYQbgLlfXcnZ4P7gBXoT6gg3kQezaL9qlvgs+E5vbs4e8ThwLroOIz1KvtMM1LfTeXvXxoRuogAG5Ifdu466g3mwnkWtdNvG9aaR4kLjq6kpNFc/GztH2wl70WTCvzqujzXMDo/gEFKAkGEjJg1YIAPP/NytAHmE2NrfMBvds3KRJ/ZB/8ogcvHZeJsVodnSuhjYU62vi9/CbbAT+5i0XnNc+H7CRysVmR6Y8+VYtC+8/EPIhq6CynE6kh0iNlOiJvoY6PkUntzurR6B9Ea6bAQa3HIQ/lBGolr3+XldJRewtXuDQAYHiID8f6cND3722IpE0eYXxkiGZ1nCVqHnY0vCArAncl9hxLGNhObQ4D0xya1PnWl37BdZ+z2+P--Kk8P3Iry+cwtMepi--sDT3FetsAdaO3rpKbKafig==; path=/; secure; HttpOnly; SameSite=Lax'

cookies_list = cookies.split("; ")
dict = {cookie.split("=")[0]: cookie.split('=')[-1] for cookie in cookies_list}
print(dict)
